import http from '@/utils/request'

/**
 * 登录校验
 * @param {String} username 用户名
 * @param {String} password 密码
 * @returns
 */
export const loginApi = ({
    username,
    password
}) => {
    return http('/login', 'post', {
        username,
        password
    })
}